package com.lgy.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lgy.dao.UserRepository;
import com.lgy.model.User;
@Service
@Transactional
public class UserServiceImpl implements UserService {
	@Autowired
	private UserRepository userRepository;
	
	@Override
	public List<User> findListByuserName(String userName) {
		return userRepository.findByUserName(userName);
	}

}
